﻿using System.Collections.Generic;
using DomainModel.Domain.Bases;
using DomainModel.Utils;
using MessageTypeDescriber.Xml;

namespace DomainModel.Domain.Model.MessageTypeModel
{
    public class TypeDescriptionWrapper : ValueObject<TypeDescriptionWrapper>
    {
        public virtual string TypeDescriptionXml { get; set; }

        public virtual TypeFullDescription TypeFullDescription
        {
            get { return TypeFullDescription.FromXml(TypeDescriptionXml); }
            set { TypeDescriptionXml = TypeFullDescription.ToXml(value); }
        }

    }
}